//Tue Sep 20 20:53:28 CDT 2011
import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;

public class MirroredClock
{
	public String whatTimeIsIt(String time)
	{
		String[] t = time.split(":");
		int m = (60 - Integer.parseInt(t[1])) % 60;
		int h = (12 - Integer.parseInt(t[0]) - (m>0?1:0)) % 12;
		
		String ret = String.format("%02d:%02d", h, m);
		return ret;
	}
}
//Powered by [KawigiEdit] 2.0!
